import {create} from 'zustand';

const userStore = create(set => ({
  bears: 0,
  increasePopulation: () =>
    set((state: {bears: number}) => ({bears: state.bears + 1})),
  removeAllBears: () => set({bears: 0}),
  updateBears: (newBears: any) => set({bears: newBears}),
}));

export default userStore;
